home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIClientAuthDialogs.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  101 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIClientAuthDialogs.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIClientAuthDialogs_h__
  6. #define __gen_nsIClientAuthDialogs_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIInterfaceRequestor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIClientAuthDialogs */
  21. #define NS_ICLIENTAUTHDIALOGS_IID_STR "fa4c7520-1433-11d5-ba24-00108303b117"
  22.  
  23. #define NS_ICLIENTAUTHDIALOGS_IID \
  24.   {0xfa4c7520, 0x1433, 0x11d5, \
  25.     { 0xba, 0x24, 0x00, 0x10, 0x83, 0x03, 0xb1, 0x17 }}
  26.  
  27. /**
  28.  * nsIClientAuthDialog
  29.  * Provides UI for SSL client-auth dialogs.
  30.  */
  31. class NS_NO_VTABLE nsIClientAuthDialogs : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICLIENTAUTHDIALOGS_IID)
  35.  
  36.   /**
  37.    * display
  38.    *   UI shown when a user is asked to do SSL client auth.
  39.    */
  40.   /* void ChooseCertificate (in nsIInterfaceRequestor ctx, in wstring cn, in wstring organization, in wstring issuer, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in unsigned long count, out long selectedIndex, out boolean canceled); */
  41.   NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const PRUnichar *cn, const PRUnichar *organization, const PRUnichar *issuer, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSICLIENTAUTHDIALOGS \
  47.   NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const PRUnichar *cn, const PRUnichar *organization, const PRUnichar *issuer, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSICLIENTAUTHDIALOGS(_to) \
  51.   NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const PRUnichar *cn, const PRUnichar *organization, const PRUnichar *issuer, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) { return _to ChooseCertificate(ctx, cn, organization, issuer, certNickList, certDetailsList, count, selectedIndex, canceled); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSICLIENTAUTHDIALOGS(_to) \
  55.   NS_IMETHOD ChooseCertificate(nsIInterfaceRequestor *ctx, const PRUnichar *cn, const PRUnichar *organization, const PRUnichar *issuer, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChooseCertificate(ctx, cn, organization, issuer, certNickList, certDetailsList, count, selectedIndex, canceled); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsClientAuthDialogs : public nsIClientAuthDialogs
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSICLIENTAUTHDIALOGS
  66.  
  67.   nsClientAuthDialogs();
  68.  
  69. private:
  70.   ~nsClientAuthDialogs();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsClientAuthDialogs, nsIClientAuthDialogs)
  78.  
  79. nsClientAuthDialogs::nsClientAuthDialogs()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsClientAuthDialogs::~nsClientAuthDialogs()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* void ChooseCertificate (in nsIInterfaceRequestor ctx, in wstring cn, in wstring organization, in wstring issuer, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in unsigned long count, out long selectedIndex, out boolean canceled); */
  90. NS_IMETHODIMP nsClientAuthDialogs::ChooseCertificate(nsIInterfaceRequestor *ctx, const PRUnichar *cn, const PRUnichar *organization, const PRUnichar *issuer, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, PRBool *canceled)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98. #define NS_CLIENTAUTHDIALOGS_CONTRACTID "@mozilla.org/nsClientAuthDialogs;1"
  99.  
  100. #endif /* __gen_nsIClientAuthDialogs_h__ */
  101.